#define _CRT_SECURE_NO_WARNINGS 1
#include"heap.h"

int main()
{
	int b[] = { 9,22,7,31,5,4,11,2,32 };
	Heap hp;
	HeapInit(&hp);
	for (int i = 0; i < sizeof(b) / sizeof(int); i++)
	{
		HeapPush(&hp, b[i]);
	}

	printf("%d\n", HeapSize(&hp));

	while(!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}

	HeapDestory(&hp);

	return 0;
}